package me.CSmethod.demo.lianxi;

public class Text11 {
    public static void main(String[] args) {
        //定义一个二维数组
        int a[][]={{1,2,3},
                {4,5,6},
                {7,8,9}
        };
        //遍历二维数组
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                System.out.print(a[i][j]+" ");
            }
            System.out.println();
        }
        int [][] arr=new int[3][5];
        arr[0][0]=10;
        for (int i = 0; i < arr.length; i++) {
            for (int i1 = 0; i1 < arr[i].length; i1++) {
                System.out.print(arr[i][i1]+" ");
            }
            System.out.println();
        }

    }
}
